package filtersManagement;

import logManagement.Log4k;
import objects.Macro;
import objects.userKind;

/**
 *
 * @author FastLDL
 */

/* package visibility */
class MacroFilter {
    public static final String NOT_LOGGEDred = Macro.BASE + "";    
    private static final String PATIENTred = Macro.BASE + "faces/logged/patientFiles/patient.jsp";
    private static final String DOCTORred = Macro.BASE + "faces/logged/hwFiles/doctorFiles/doctor.jsp";
    private static final String USLred = Macro.BASE + "faces/logged/hwFiles/uslFiles/usl.jsp";
    
    public static String LOGGEDred(userKind kind){
        String res = "";
        switch (kind){
            case PATIENT: { res = PATIENTred; break; }
            case DOCTOR: { res = DOCTORred; break; }
            case USL: { res = USLred; break; }
            default: { Log4k.warn(MacroFilter.class.getName(), ""); break; }
        }
        return res;
    }
}
